﻿using System;
using System.ComponentModel.DataAnnotations;

namespace GuRenFang.Service.Entity
{
   public class Packages
    {
        [Key]
        public int Id { get; set; }

        [Required(ErrorMessage = "请填写套餐标题")]
        [StringLength(50, ErrorMessage = "标题必须在50个字符范围内")]
        [Display(Name = "标题")]
        public string Title { get; set; }

        [Required(ErrorMessage = "请填写套餐内容")]
        //[StringLength(200, ErrorMessage = "内容必须在100个字符范围内")]
        [Display(Name = "内容")]
        public string Content { get; set; }

        [Required(ErrorMessage = "请填写套餐价格")]
        [Display(Name = "价格")]
        public Decimal Price { get; set; }

        
    }
}
